package tech.aistar.wyymusicplayer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.wyymusicplayer.mapper.SearchMapper;
import tech.aistar.wyymusicplayer.pojo.Search;

import java.util.List;
@Service
public class SearchServiceImpl implements SearchService{
    @Autowired
    private SearchMapper searchMapper;
    @Override
    public List<Search> searchsongs(String text) {
        return searchMapper.selectByTitle(text);
    }
}
